package com.mq.Mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.annotation.Id;

@Mapper
public interface PaymentMapper {
    @Insert("insert into payments (order_id,payment_no,payment_method,payment_time,amount) values (#{order_id},1,#{paymentWay},NOW(),1)"
            )
    void createPayment(Double price, Integer orderId,String paymentWay);
}
